package com.frank.threadPool;

/**
 * @author 小石潭记
 * @date 2021/4/4 13:56
 * @Description: ${todo}
 */
public class MyTask implements Runnable {

    int i = 0;

    public MyTask(int i) {
        this.i = i;
    }

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + "--" + i);
        try {
            Thread.sleep(1000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
